package renshi.base;

import java.sql.Connection;
import java.sql.SQLException;

import renshi.utils.DBUtils;

import com.opensymphony.xwork2.ActionSupport;


public class BaseAction  extends ActionSupport{
	private static final long serialVersionUID = 1L;
	protected Connection con;

	protected void openCon() throws SQLException, ClassNotFoundException{
		con = DBUtils.getConnection();
	}
	
	protected void closeCon() throws SQLException{
		DBUtils.CloseCon(con);
	}
}
